import express from 'express'
import { getUserInfo, updateUserInfo, updateUserAvatar,updateUserPassword } from '../controller/userinfo_ctrl.js'

const userinforouter = new express.Router()

userinforouter.get('/userinfo', getUserInfo)
userinforouter.put('/updateuserinfo', updateUserInfo)
userinforouter.post('/updateavatar', updateUserAvatar)
userinforouter.patch('/updatepwd', updateUserPassword)
export default userinforouter
